<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./css/Element-ui.css" />
  </head>
  <style>
    body {
      margin: 0;
    }

    .el-carousel__item h3 {
      color: #475669;
      font-size: 14px;
      opacity: 0.75;
      line-height: 150px;
      margin: 0;
    }

    .el-carousel__item:nth-child(2n) {
      background-color: #99a9bf;
    }

    .el-carousel__item:nth-child(2n + 1) {
      background-color: #d3dce6;
    }
  </style>
  <body>
    <div id="app">
      <template>
        <div class="block" align="center">
          <el-carousel height="100vh" style="width: 100%">
            <el-carousel-item v-for="item in img" :key="img">
              <img
                :src="item.url"
                alt="img"
                style="width: 100%; height: 100%"
              />
            </el-carousel-item>
          </el-carousel>
        </div>
      </template>
    </div>
  </body>
  <script src="./js/vue.min.js"></script>
  <script src="./js/Element-ui.min.js"></script>
  <script>
    let v = new Vue({
      el: "#app",
      data: {
        img: [
          {
            url: "https://s11.ax1x.com/2024/02/07/pF1Rr8J.jpg",
          },
          {
            url: "https://s11.ax1x.com/2024/02/07/pF1RDC4.webp",
          },
          {
            url: "https://s11.ax1x.com/2024/02/05/pFlWVAS.jpg",
          },
          {
            url: "https://s11.ax1x.com/2024/02/05/pFlWk0f.webp",
          },
        ],
      },
      methods: {},
    });
  </script>
</html>
